package com.cplatform.movie.back.sale.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonProperty;



/**
 *商品分类表 
 * <p>
 * @author 左天宇
 * <p>
 * @package com.z.item.entity
 * <p>
 * @time 下午3:16:05 2015年5月31日
 */
@Entity
@Table(name = "T_SMALL_SHOP_TYPE")
public class ItemType implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@SequenceGenerator(name = "seq_item", sequenceName = "SEQ_SMALL_SHOP_SEQ")
	@Id
	@GeneratedValue(generator = "seq_item")
	@JsonProperty
	private Long id;
	
	@Column(name = "NAME", length=50)
	private String name;
	
	/*
	 * 第一级分类id
	 */
	@Column(name = "grand_base_id")
	private Long grandBaseId;
	
	/**
	 * 二级
	 */
	@Column(name = "base_id")
	private  Long baseId;
	
	@Column(name = "img_path", length=100)
	private String imgPath;
	
	/**
	 * 是否是末级
	 */
	@Column(name = "is_end", length=1)
	private int isEnd;
	
	/**
	 * 三级
	 */
	@Column(name = "type_id", length=1)
	private Long type_id;
	
	
	
	public Long getType_id() {
		return type_id;
	}

	public void setType_id(Long type_id) {
		this.type_id = type_id;
	}

	@Column(name = "create_time", length=14)
	private String createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getGrandBaseId() {
		return grandBaseId;
	}

	public void setGrandBaseId(Long grandBaseId) {
		this.grandBaseId = grandBaseId;
	}

	public Long getBaseId() {
		return baseId;
	}

	public void setBaseId(Long baseId) {
		this.baseId = baseId;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	
	
	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public int getIsEnd() {
		return isEnd;
	}

	public void setIsEnd(int isEnd) {
		this.isEnd = isEnd;
	}
}
